package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.SafetyPointInfoMapper;
import com.ruoyi.safety.domain.SafetyPointInfo;
import com.ruoyi.safety.service.ISafetyPointInfoService;

/**
 * 测点基本信息Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-30
 */
@Service
public class SafetyPointInfoServiceImpl extends ServiceImpl<SafetyPointInfoMapper, SafetyPointInfo> implements ISafetyPointInfoService //修改
{
    @Autowired
    private SafetyPointInfoMapper safetyPointInfoMapper;

    /**
     * 查询测点基本信息
     *
     * @param pointCode 测点基本信息主键
     * @return 测点基本信息
     */
    @Override
    public SafetyPointInfo selectSafetyPointInfoByPointCode(String pointCode)
    {
        return safetyPointInfoMapper.selectSafetyPointInfoByPointCode(pointCode);
    }

    /**
     * 查询测点基本信息列表
     *
     * @param safetyPointInfo 测点基本信息
     * @return 测点基本信息
     */
    @Override
    public List<SafetyPointInfo> selectSafetyPointInfoList(SafetyPointInfo safetyPointInfo)
    {
        return safetyPointInfoMapper.selectSafetyPointInfoList(safetyPointInfo);
    }

    /**
     * 新增测点基本信息
     *
     * @param safetyPointInfo 测点基本信息
     * @return 结果
     */
    @Override
    public int insertSafetyPointInfo(SafetyPointInfo safetyPointInfo)
    {
        return safetyPointInfoMapper.insertSafetyPointInfo(safetyPointInfo);
    }

    /**
     * 修改测点基本信息
     *
     * @param safetyPointInfo 测点基本信息
     * @return 结果
     */
    @Override
    public int updateSafetyPointInfo(SafetyPointInfo safetyPointInfo)
    {
        return safetyPointInfoMapper.updateSafetyPointInfo(safetyPointInfo);
    }

    /**
     * 批量删除测点基本信息
     *
     * @param pointCodes 需要删除的测点基本信息主键
     * @return 结果
     */
    @Override
    public int deleteSafetyPointInfoByPointCodes(String[] pointCodes)
    {
        return safetyPointInfoMapper.deleteSafetyPointInfoByPointCodes(pointCodes);
    }

    /**
     * 删除测点基本信息信息
     *
     * @param pointCode 测点基本信息主键
     * @return 结果
     */
    @Override
    public int deleteSafetyPointInfoByPointCode(String pointCode)
    {
        return safetyPointInfoMapper.deleteSafetyPointInfoByPointCode(pointCode);
    }
}
